#!/usr/bin/env python2.5

## Usage:  ~		(meant to be used modularly, or haven't you figured this out by now?)

## Initializes the dictionary of "ideal" definitions for the NLP Tutor.

import sys

def getBest(idealsfile):
	best = dict()
	try:
		file = open(idealsfile, 'r')
		for pair in file:
			best[" ".join(pair.split()[:-1])] = pair.split()[-1]
		file.close()
	except:
		print "File does not exist."
	return best

if (__name__ == "__main__"):
	ideal = getBest(sys.argv[1])
	for x in ideal.keys():
		print x + " has definition no. " + ideal[x]
